def setup
  size 200, 200
  noStroke
  a = color 165, 167, 20
  b = color 77, 86, 59
  c = color 42, 106, 105
  d = color 165, 89, 20
  e = color 146, 150, 127
  draw_band [a, b, c, d, e], 4
  translate 0, 0.5 * height
  draw_band [c, a, d, b, e], 4
end

def draw_band(colors, bar_width)
  x = 0
  while x < width
    colors.each_with_index do |c, i|
      fill c
      rect x, 0, bar_width, height
      x += bar_width
    end
  end
end